package com.qst.service.impl;

import com.qst.dao.HelpInfoMapper;
import com.qst.pojo.HelpInfo;
import com.qst.service.HelpInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service @Transactional public class HelpInfoServiceImpl implements HelpInfoService {
	 @Autowired private HelpInfoMapper helpInfoMapper;

	 @Override public void insertInfo(HelpInfo info) {
		  helpInfoMapper.insertInfo(info);
	 }

	 @Override public List<HelpInfo> findAllInfo() {
		  List<HelpInfo> infolist = helpInfoMapper.findAllInfo();
		  return infolist;
	 }

	 @Override public HelpInfo findByid(Integer id) {

		  return helpInfoMapper.findByid(id);
	 }

	 @Override public void deleteInfo(Integer id) {
		  helpInfoMapper.deleteInfo(id);
	 }

	 @Override public void updateInfo(HelpInfo info) {
		  helpInfoMapper.updateInfo(info);
	 }
}
